import xhr from "../axios/request";
import { IUserInfoParams } from "../constant/info_index";


export const getUserInfoData = () => {
  return xhr.get('/user/profile')
}


export const editUserInfoData = (params: IUserInfoParams) => {
  return xhr.patch('/user/profile', params)
}